package aaa.question.domain;

import cn.hutool.core.annotation.Alias;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import aaa.common.annotation.Excel;
import aaa.common.core.domain.BaseEntity;

/**
 * 题目库对象 ques_question_bank
 * 
 * @author xyy
 * @date 2025-01-06
 */
public class QuesQuestionBank extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 题目id */
    private Long questionId;

    /** 题目内容 */
    @Excel(name = "题目内容")
    @Alias("题目内容")
    private String questionText;

    /** 正确答案 */
    @Excel(name = "正确答案")
    @Alias("正确答案")
    private String correctAnswer;

    /** 正确答案选项id */
    private Long correctAnswerOptionId;

    /** 题目类型 */
    @Excel(name = "题目类型")
    @Alias("题目类型")
    private String questionType;

    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setQuestionText(String questionText) 
    {
        this.questionText = questionText;
    }

    public String getQuestionText() 
    {
        return questionText;
    }
    public void setCorrectAnswer(String correctAnswer) 
    {
        this.correctAnswer = correctAnswer;
    }

    public String getCorrectAnswer() 
    {
        return correctAnswer;
    }
    public void setCorrectAnswerOptionId(Long correctAnswerOptionId) 
    {
        this.correctAnswerOptionId = correctAnswerOptionId;
    }

    public Long getCorrectAnswerOptionId() 
    {
        return correctAnswerOptionId;
    }
    public void setQuestionType(String questionType) 
    {
        this.questionType = questionType;
    }

    public String getQuestionType() 
    {
        return questionType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("questionId", getQuestionId())
            .append("questionText", getQuestionText())
            .append("correctAnswer", getCorrectAnswer())
            .append("correctAnswerOptionId", getCorrectAnswerOptionId())
            .append("questionType", getQuestionType())
            .toString();
    }
}
